# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 8
_modified_time = 1335027086.907
_enable_loop = True
_template_filename = u'D:\\aaa\\CookBook2\\cookbook2\\templates/base.mako'
_template_uri = u'/base.mako'
_source_encoding = 'utf-8'
from markupsafe import escape
_exports = ['css_link', 'css']


def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        set = context.get('set', UNDEFINED)
        url = context.get('url', UNDEFINED)
        h = context.get('h', UNDEFINED)
        self = context.get('self', UNDEFINED)
        session = context.get('session', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<!--\nDesign by Free CSS Templates\nhttp://www.freecsstemplates.org\nReleased for free under a Creative Commons Attribution 2.5 License\n\nName       : Yellowing   \nDescription: A two-column, fixed-width design with dark color scheme.\nVersion    : 1.0\nReleased   : 20110123\n\n-->\n\n\n')
        # SOURCE LINE 16
        self.seen_css = set() 
        
        __M_locals_builtin_stored = __M_locals_builtin()
        __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in [] if __M_key in __M_locals_builtin_stored]))
        __M_writer(u'\n<head>\n    ')
        # SOURCE LINE 18
        __M_writer(escape(self.css()))
        __M_writer(u'\n\t<title>Ksi\u0105\u017cka kucharska</title>\n</head>\n\n')
        # SOURCE LINE 26
        __M_writer(u'\n\n')
        # SOURCE LINE 30
        __M_writer(u'\n\n\n<body>\n<div id="wrapper">\n\t<div id="header">\n\t\t<div id="logo">\n\t\t\t<h1><a href="#">Ksi\u0105\u017cka kucharska</a></h1>\n\t\t</div>\n\t\t<!--<div id="search">\n\t\t\t<form method="get" action="">\n\t\t\t\t<fieldset>\n\t\t\t\t\t<input type="text" name="s" id="search-text" size="15" value="enter keywords here..." />\n\t\t\t\t\t<input type="submit" id="search-submit" value="GO" />\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t</div>-->\n\t</div>\n\t<!-- end #header -->\n\n\t<div id="page">\n\t\t<div id="page-bgtop">\n\t\t\t<div id="page-bgbtm">\n\t\t\t\t<div id="menu">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li class="current_page_item"><a href="/index/index">Strona g\u0142\xf3wna</a></li>\n\t\t\t\t\t\t<li><a href="/register/index">Rejestracja</a></li>\n\t\t\t\t\t\t\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<!-- end #menu -->\n\t\t\t\t<div id="content">\n\t\t\t\t\n\t\t\t\t\t')
        # SOURCE LINE 63
        __M_writer(escape(self.page()))
        __M_writer(u'\n\t\t\t\t\t\n\t\t\t\t\t<div style="clear: both;">&nbsp;</div>\n\t\t\t\t</div>\n\t\t\t\t<!-- end #content -->\n\t\t\t\t<div id="sidebar">\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t')
        # SOURCE LINE 71
        user = session.get("user")    
        
        __M_locals_builtin_stored = __M_locals_builtin()
        __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['user'] if __M_key in __M_locals_builtin_stored]))
        __M_writer(u'\n')
        # SOURCE LINE 72
        if user:
            # SOURCE LINE 73
            __M_writer(u'\t\t\t\t\t\t\t<h2>Zalogowany</h2>\n\t\t\t\t\t\t\tjako ')
            # SOURCE LINE 74
            __M_writer(escape(user))
            __M_writer(u'\n\t\t\t\t\t\t\t[<a href="/login/logout">Wyloguj</a>]\n')
            # SOURCE LINE 76
        else:
            # SOURCE LINE 77
            __M_writer(u'\t\t\t\t\t\t\t')
            user = session.get("user")    
            
            __M_locals_builtin_stored = __M_locals_builtin()
            __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin_stored[__M_key]) for __M_key in ['user'] if __M_key in __M_locals_builtin_stored]))
            __M_writer(u'\n\t\t\t\t\t\t\t<h2>Logowanie</h2>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t')
            # SOURCE LINE 80
            __M_writer(escape(h.form(url(controller='login', action='login'))))
            __M_writer(u'\n\t\t\t\t\t\t\t\t<label>Login: ')
            # SOURCE LINE 81
            __M_writer(escape(h.text('login')))
            __M_writer(u' ')
            __M_writer(escape(c.errlogin))
            __M_writer(u'</label><br>\n\t\t\t\t\t\t\t\t<label>Has\u0142o: ')
            # SOURCE LINE 82
            __M_writer(escape(h.text('pass')))
            __M_writer(u' ')
            __M_writer(escape(c.errpass))
            __M_writer(u'</label><br>\n\t\t\t\t\t\t\t\t')
            # SOURCE LINE 83
            __M_writer(escape(h.submit('post', 'Zaloguj')))
            __M_writer(u'\n\t\t\t\t\t\t\t\t')
            # SOURCE LINE 84
            __M_writer(escape(h.end_form()))
            __M_writer(u'\n\t\t\t\t\t\t\t</p>\n')
            pass
        # SOURCE LINE 87
        __M_writer(u'\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<h2>Kategorie</h2>\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t<li><a href="#">Aliquam libero</a></li>\n\t\t\t\t\t\t\t\t<li><a href="#">Consectetuer adipiscing elit</a></li>\n\t\t\t\t\t\t\t\t<li><a href="#">Metus aliquam pellentesque</a></li>\n\t\t\t\t\t\t\t\t<li><a href="#">Suspendisse iaculis mauris</a></li>\n\t\t\t\t\t\t\t\t<li><a href="#">Urnanet non molestie semper</a></li>\n\t\t\t\t\t\t\t\t<li><a href="#">Proin gravida orci porttitor</a></li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<!-- end #sidebar -->\n\t\t\t\t<div style="clear: both;">&nbsp;</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<!-- end #page -->\n</div>\n<div id="footer-wrapper">\n\t<div id="footer">\n\t\t<p>Copyright (c) 2012 Karol Kalinowski & Pawe\u0142 Bajguz. All rights reserved. Design by <a href="http://www.freecsstemplates.org/"> CSS Templates</a>.</p>\n\t</div>\n</div>\n<!-- end #footer -->\n</body>\n</html>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_css_link(context,path,media=''):
    __M_caller = context.caller_stack._push_frame()
    try:
        self = context.get('self', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 22
        __M_writer(u'\n')
        # SOURCE LINE 23
        if path not in self.seen_css:
            # SOURCE LINE 24
            __M_writer(u'        <link rel="stylesheet" type="text/css" href="')
            __M_writer(filters.html_escape(escape(path)))
            __M_writer(u'" media="')
            __M_writer(escape(media))
            __M_writer(u'"></link>\n')
            pass
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_css(context):
    __M_caller = context.caller_stack._push_frame()
    try:
        def css_link(path,media=''):
            return render_css_link(context,path,media)
        __M_writer = context.writer()
        # SOURCE LINE 28
        __M_writer(u'\n    ')
        # SOURCE LINE 29
        __M_writer(escape(css_link('/style.css', 'screen')))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


